package com.yantong.mapper;

import com.yantong.pojo.StoreFreecharge;
import com.yantong.pojo.StoreFreechargeExample;
import com.yantong.pojo.vo.StoreFreechargeVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface StoreFreechargeMapper {
    long countByExample(StoreFreechargeExample example);

    int deleteByExample(StoreFreechargeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(StoreFreecharge record);

    int insertSelective(StoreFreecharge record);

    List<StoreFreecharge> selectByExample(StoreFreechargeExample example);

    StoreFreecharge selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") StoreFreecharge record, @Param("example") StoreFreechargeExample example);

    int updateByExample(@Param("record") StoreFreecharge record, @Param("example") StoreFreechargeExample example);

    int updateByPrimaryKeySelective(StoreFreecharge record);

    int updateByPrimaryKey(StoreFreecharge record);

    List<StoreFreecharge> pageListBycondition(Map map, RowBounds rowBounds);

    int queryTotal(Map map);

    BigDecimal getStoreProductPrice(@Param("teamId") Long shopMemberId);

    int getCounpCount(@Param("activityId") Long activityId, @Param("ids") String ids);

    List<StoreFreechargeVo> selectByIdIn(@Param("idCollection") Collection<String> idCollection);

    List<StoreFreecharge> selectByIdInStoreFreecharge(@Param("idCollection") Collection<String> idCollection);
}